#include "membertemplate.h"
#include "parameterlist.h"
#include "component.h"

MemberTemplate::MemberTemplate(const QString& name, ParameterList* params, const YYLTYPE& loc)
        : Node(loc), m_name(name), m_params(params)
{
    appendChild(params);
}

Component* MemberTemplate::component() const
{
    return dynamic_cast<Component*>(parentNode()->parentNode());
}
